package exemples;
import javax.swing.*;

import java.awt.*;
import java.awt.event.*;

public class Control extends JPanel{
	
	public Control(Model couleur){
		JLabel jRouge = new JLabel("Rouge");
		JLabel jVert = new JLabel("Vert");
		JLabel jBleu = new JLabel("Bleu");
		
		JSpinner sRouge = new JSpinner(new SpinnerNumberModel(0,0,255,1));
		JSpinner sVert = new JSpinner(new SpinnerNumberModel(0,0,255,1));
		JSpinner sBleu = new JSpinner(new SpinnerNumberModel(0,0,255,1));
		
		Box box1 = new Box(BoxLayout.X_AXIS);
		Box box2 = new Box(BoxLayout.X_AXIS);
		Box box3 = new Box(BoxLayout.X_AXIS);
		Box box4 = new Box(BoxLayout.Y_AXIS);
		
		box1.add(jRouge);
		box1.add(sRouge);
		box2.add(jVert);
		box2.add(sVert);
		box3.add(jBleu);
		box3.add(sBleu);
		box4.add(box1);
		box4.add(box2);
		box4.add(box3);
		this.add(box4);
	}
}
